import 'package:flutter/material.dart';
import 'package:flutterceshi/Drawer.dart';
import 'home.dart';
import 'AppBar.dart';
import 'Tab.dart';
import 'video.dart';
void main(){
  runApp(MyApp());
}

var r = (RouteSettings seet){
  return PageRouteBuilder(
    settings: seet,
    pageBuilder: (context,a,s){
      switch (seet.name){
        case 'AppBar' : return AppBar_();
        case 'Drawer' : return Drawer_();
        case 'Tab' : return Tab_();
        case 'video' : return Video_();
        default: return home();
      }
    }
  );
};

class MyApp extends StatefulWidget {
  const MyApp({Key? key}) : super(key: key);

  @override
  State<MyApp> createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      debugShowCheckedModeBanner: false,
      onGenerateRoute: r,
    );
  }
}
